package Api

import (
	"Gin/Api/handler"
	"Gin/Api/middlewere"
	"github.com/gin-gonic/gin"
)

func Run(r *gin.Engine) {
	r.POST("/video/upload", handler.UploadVideo)
	r.GET("/video/view", handler.VideoView)
	r.POST("/pay/return", handler.PayReturn)
	origin := r.Group("")
	origin.Use(middlewere.OriginMiddleware())
	origin.POST("/video/list", handler.VideoList)
	origin.POST("/user/data", handler.UserData)
}
